# -*- coding: UTF-8 -*-
'''
@Project ：pythonProject 
@File    ：boolDemo.py
@Author  ：siwei
@Date    ：2023/5/16 23:42 
'''
# bool值之间的运算符 and | or | not | in | not in
a = True
b = False

print(a and b)  # 有假则假
print(a or b)  # 有真则真
print(not a)  # 非运算,取反

print("-----------------")
# in:xxx包含xx      not in:xxx不包含xx
a = (1, 2, 3)
b = 2
c = "nba"
d = "n"
e = "k"
print(b in a)
print(d in c)
print(e in c)
print(d not in c)
print(e not in c)